﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student
    {
        public int Id { get; set; }
        public String Name { get; set; }
        public int Score { get; set; }

        public void SetStudent(int id, String name, int score)
        {
            Id = id;
            Name = name;
            Score = score;
        }
        public void PrintMsg()
        {
            Console.WriteLine("学生编号：" + Id);
            Console.WriteLine("学生姓名：" + Name);
            Console.WriteLine("学生成绩：" + Score);
        }

        class Program
        {
            public static void Main(String[] args)
            {
                Student student = new Student();
                student.SetStudent(1001, "小明", 98);
                student.PrintMsg();
            }
        }
    }
}
